Repository navigation
Remove unused internals; a cancelled pooled all-columns read ends quietly - #284
Merged
Merged
Conversation
…etly Deletes code nothing calls, and tidies a few small things. No public API changes. - Removed: `ListSink<T>`; the `ValueTask<bool>` overload of `CancelledAsFalse`; the non-generic `CancellationTokens.RunAsync`; `DbQueryBinding.MemberNames`; the view-level `WithConfig` on `MappedQuery<T>`, `MappedQueryWithSkip<T>` and `MappedQueryWithTake<T>` (the core's and the command view's stay); the `readStarted` parameter of the private `AsAsyncEnumerableInternal` pair, which was always `false`; a no-op `Contract.EndContractBlock()` in an iterator; `TextNameCache.Names` (its two callers use the parser); the second copy of `Bare` in `NameSet`; the `partial` on `DataRecordExtensions`, which has no other part. - Tidied: the open-connection mask in `ExpressiveCommandBase` is `!NeedsOpen`, as everywhere else; an empty `PooledBuffer` is made by `CreateEmptyOwner()`; comments that described the code wrongly (the chunk shift is a bit shift, not doublings; the no-allocation note on `CancellationTokens.RunAsync`). - Fixed: the pooled all-columns form of `AsAsyncEnumerable(arrayPool)` did not pass its token to `ReadAsync` or treat a cancelled read as the end, as the three other forms do. A read the provider cancels now ends the enumeration quietly with the rows already yielded. A test pins it, with the token reaching every read. - Release notes: the cancel fix is under "Changes since rc.16". Core tests pass with the generator on and off, the samples pass, the VS solution build has no errors, and `dotnet format style` and `analyzers` at `--severity info` report nothing on every project. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…pass3 # Conflicts: # docsite/articles/release-notes.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes code nothing calls and tidies a few small things. No public API changes.
ListSink<T>; theValueTask<bool>overload ofCancelledAsFalse; the non-genericCancellationTokens.RunAsync;DbQueryBinding.MemberNames; the view-levelWithConfigonMappedQuery<T>,MappedQueryWithSkip<T>andMappedQueryWithTake<T>(the core's and the command view's stay); thereadStartedparameter of the privateAsAsyncEnumerableInternalpair, which was alwaysfalse; a no-opContract.EndContractBlock()in an iterator;TextNameCache.Names(its two callers use the parser); the second copy ofBareinNameSet; thepartialonDataRecordExtensions, which has no other part.ExpressiveCommandBaseis!NeedsOpen, as everywhere else; an emptyPooledBufferis made byCreateEmptyOwner(); comments that described the code wrongly (the chunk shift is a bit shift, not doublings; the no-allocation note onCancellationTokens.RunAsync).AsAsyncEnumerable(arrayPool)did not pass its token toReadAsyncor treat a cancelled read as the end, as the three other forms do. A read the provider cancels now ends the enumeration quietly with the rows already yielded. A test pins it, with the token reaching every read. It is in the release notes under "Changes since rc.16".Left alone on purpose:
FillAsyncreturnsValueTask<bool>that is alwaystrue; a plainValueTaskwould need a conversion that allocates when the read does not finish at once.PooledBuffer.DisposeAsynckeeps itsasync/await: a pool whoseReturnthrows makesDisposeCorethrow before it returns a task, and without theasyncthat throw would come from the call instead of from the awaited result.Core tests pass with the generator on and off, the samples pass, the Visual Studio solution build has no errors,
dotnet format styleandanalyzersat--severity inforeport nothing on every project, and the docs build is clean.🤖 Generated with Claude Code